package math;

public class Assignment implements Statement
{
    VariableReferenceNode v;
    MathNode expression;

    Assignment(VariableReferenceNode v,MathNode e)
    {
        this.v = v;
        this.expression = e;
    }

    @Override
    public String toDisplayString()
    {
        return v.getName() + " = " + expression.getExpressionString();
    }
}

